<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pCmsNavigation
 *
 * @ORM\Table(name="p2p_cms_navigation", indexes={@ORM\Index(name="fid", columns={"n_fid"}), @ORM\Index(name="display", columns={"n_display"})})
 * @ORM\Entity
 */
class P2pCmsNavigation
{
    /**
     * @var string
     *
     * @ORM\Column(name="n_title", type="string", length=50, nullable=true)
     */
    private $nTitle;

    /**
     * @var string
     *
     * @ORM\Column(name="n_url", type="string", length=100, nullable=true)
     */
    private $nUrl;

    /**
     * @var boolean
     *
     * @ORM\Column(name="n_display", type="boolean", nullable=true)
     */
    private $nDisplay;

    /**
     * @var integer
     *
     * @ORM\Column(name="n_fid", type="integer", nullable=true)
     */
    private $nFid;

    /**
     * @var integer
     *
     * @ORM\Column(name="n_type", type="integer", nullable=true)
     */
    private $nType;

    /**
     * @var integer
     *
     * @ORM\Column(name="sort", type="integer", nullable=false)
     */
    private $sort;

    /**
     * @var string
     *
     * @ORM\Column(name="n_code", type="string", length=30, nullable=false)
     */
    private $nCode;

    /**
     * @var boolean
     *
     * @ORM\Column(name="gotofirstchild", type="boolean", nullable=false)
     */
    private $gotofirstchild = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="n_id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $nId;



    /**
     * Set nTitle
     *
     * @param string $nTitle
     *
     * @return P2pCmsNavigation
     */
    public function setNTitle($nTitle)
    {
        $this->nTitle = $nTitle;

        return $this;
    }

    /**
     * Get nTitle
     *
     * @return string
     */
    public function getNTitle()
    {
        return $this->nTitle;
    }

    /**
     * Set nUrl
     *
     * @param string $nUrl
     *
     * @return P2pCmsNavigation
     */
    public function setNUrl($nUrl)
    {
        $this->nUrl = $nUrl;

        return $this;
    }

    /**
     * Get nUrl
     *
     * @return string
     */
    public function getNUrl()
    {
        return $this->nUrl;
    }

    /**
     * Set nDisplay
     *
     * @param boolean $nDisplay
     *
     * @return P2pCmsNavigation
     */
    public function setNDisplay($nDisplay)
    {
        $this->nDisplay = $nDisplay;

        return $this;
    }

    /**
     * Get nDisplay
     *
     * @return boolean
     */
    public function getNDisplay()
    {
        return $this->nDisplay;
    }

    /**
     * Set nFid
     *
     * @param integer $nFid
     *
     * @return P2pCmsNavigation
     */
    public function setNFid($nFid)
    {
        $this->nFid = $nFid;

        return $this;
    }

    /**
     * Get nFid
     *
     * @return integer
     */
    public function getNFid()
    {
        return $this->nFid;
    }

    /**
     * Set nType
     *
     * @param integer $nType
     *
     * @return P2pCmsNavigation
     */
    public function setNType($nType)
    {
        $this->nType = $nType;

        return $this;
    }

    /**
     * Get nType
     *
     * @return integer
     */
    public function getNType()
    {
        return $this->nType;
    }

    /**
     * Set sort
     *
     * @param integer $sort
     *
     * @return P2pCmsNavigation
     */
    public function setSort($sort)
    {
        $this->sort = $sort;

        return $this;
    }

    /**
     * Get sort
     *
     * @return integer
     */
    public function getSort()
    {
        return $this->sort;
    }

    /**
     * Set nCode
     *
     * @param string $nCode
     *
     * @return P2pCmsNavigation
     */
    public function setNCode($nCode)
    {
        $this->nCode = $nCode;

        return $this;
    }

    /**
     * Get nCode
     *
     * @return string
     */
    public function getNCode()
    {
        return $this->nCode;
    }

    /**
     * Set gotofirstchild
     *
     * @param boolean $gotofirstchild
     *
     * @return P2pCmsNavigation
     */
    public function setGotofirstchild($gotofirstchild)
    {
        $this->gotofirstchild = $gotofirstchild;

        return $this;
    }

    /**
     * Get gotofirstchild
     *
     * @return boolean
     */
    public function getGotofirstchild()
    {
        return $this->gotofirstchild;
    }

    /**
     * Get nId
     *
     * @return integer
     */
    public function getNId()
    {
        return $this->nId;
    }
}
